package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class MessageSpotBase{
	boolean[] modified=new boolean[6];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public MessageSpotBase(){}
	public MessageSpotBase(java.lang.Long userId,java.lang.Long received,java.lang.Long unread,java.lang.Long sent,java.lang.Long draft,java.lang.String nofity){
		setUserId(userId);
		setReceived(received);
		setUnread(unread);
		setSent(sent);
		setDraft(draft);
		setNofity(nofity);
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setReceived(java.lang.Long received){
		if(received!=null) {
			set("received",received);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getReceived(){
		return (java.lang.Long)get("received");
	}
	public void setUnread(java.lang.Long unread){
		if(unread!=null) {
			set("unread",unread);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getUnread(){
		return (java.lang.Long)get("unread");
	}
	public void setSent(java.lang.Long sent){
		if(sent!=null) {
			set("sent",sent);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getSent(){
		return (java.lang.Long)get("sent");
	}
	public void setDraft(java.lang.Long draft){
		if(draft!=null) {
			set("draft",draft);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getDraft(){
		return (java.lang.Long)get("draft");
	}
	public void setNofity(java.lang.String nofity){
		if(nofity!=null) {
			set("nofity",nofity);
			this.modified[5] =true;
		}
	}
	public java.lang.String getNofity(){
		return (java.lang.String)get("nofity");
	}
}
